import matplotlib.pyplot as plt

# input_values = [1, 2, 3, 4, 5]
# squares = [1, 4, 9, 16, 25]
# plt.style.use('seaborn')
# fig, ax = plt.subplots()
# ax.scatter(input_values, squares, s=100)
# ax.plot(input_values, squares, linewidth=3)
# ax.set_title("平方数", fontsize=24)
# ax.set_xlabel("值", fontsize=14)
# ax.set_ylabel("值的平方", fontsize=14)
# ax.tick_params(axis='both', labelsize=14)
x_values = range(1001)
y_values = [x ** 2 for x in x_values]
fig, ax = plt.subplots()
ax.scatter(x_values, y_values, s=10, c="red")
ax.axis([0, 1100, 0, 1100000])

# plt.show()
plt.savefig('jt.png', bbox_inches='tight')  # 保存到图片文件
